const log4js = require('koa-log4');
const logger = log4js.getLogger('qiniu::manager');
const nconf = require('nconf');
const qiniu = require('qiniu');
const qiniu_config = nconf.get('qiniu');
const bucket = qiniu_config['bucket_name'];
const accessKey = qiniu_config['access_key'];
const secretKey = qiniu_config['secret_key'];
const domain = qiniu_config['domain'];
const zone = qiniu_config['zone'];
const config = new qiniu.conf.Config();
config.zone = qiniu.zone[zone];
// 鉴权对象mac
const mac = new qiniu.auth.digest.Mac(accessKey, secretKey);
const bucketManager = new qiniu.rs.BucketManager(mac, config);




